package com.crazyhat.crazyhat.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 社团相似度推荐表
 * </p>
 *
 * @author crazyhat
 * @since 2024-07-11
 */
@Getter
@Setter
@TableName("recommend")
public class Recommend implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 相似度ID
     */
    @TableId(value = "similar_id", type = IdType.AUTO)
    private Integer similarId;

    /**
     * 基社团ID
     */
    @TableField("base_club_id")
    private Integer baseClubId;

    /**
     * 目标社团ID
     */
    @TableField("target_club_id")
    private Integer targetClubId;

    /**
     * 相似度
     */
    @TableField("similarity")
    private Double similarity;

    /**
     * 更新时间
     */
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
